import { defineStore } from "pinia";
// 用户数据信息
const useUserStore = defineStore("users", {
  state: () => {
    return {
      queryParams: {
        pageSize: 20,
        pageNo: 1
      },
    }; 
  },
  getters: {},
  actions: {
    setKeyVal(key, val) {
      this.queryParams[key] = val;
    }
  },
  persist: {
    enabled: true, //开启 enabled 之后，默认会对整个 Store 的 state 内容进行 sessionStorage 储存
    strategies: [],
  },
});

export default useUserStore;



